<?php

class IndexController extends Zend_Controller_Action
{


	public function indexAction()
	{
		$article = new Application_Model_DbTable_Article();		
		$result = $article->fetchLatest();
		$page = $this->_getParam('page',1);
		$paginator = Zend_Paginator::factory($result);
		Zend_Paginator::setDefaultScrollingStyle('Elastic');

		$paginator	->setItemCountPerPage(4)
					->setCurrentPageNumber($page);
		
		$this->view->paginator = $paginator;

	}



}



